﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
public partial class master_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        string cargo = txtCargo.Text;
        ModPersona persona = new ModPersona();
        Tbl_Cargos ncargo = new Tbl_Cargos();
        ncargo.iConcurrencia = 0;
        ncargo.iEstado_fl = true;
        ncargo.sNombre_Cargo = cargo;
        persona.insertCargo(ncargo);
        Response.Redirect("CargosList.aspx");
    }
    protected void btnCancel_Click(object sender, EventArgs e)
    {
        Response.Redirect("CargosList.aspx");
    }
}